const sequelize = require('sequelize');

module.exports = app => {
    const { STRING, INTEGER } = app.Sequelize;

    const User = app.model.define('tag', {
        id: { type: sequelize.INTEGER, primaryKey: true, autoIncrement: true },

        tagName: STRING(1234),

        tagId: {
            type: INTEGER,
            allowNull: false,
        }
    });
    return User;
};